package com.bridgeintelligent.tag.mapper;

import com.bridgeintelligent.tag.webserver.dim.mgmt.api.DimCatalog;
import com.bridgeintelligent.tag.webserver.dim.mgmt.api.vo.AssessDataVO;
import com.bridgeintelligent.tag.webserver.dim.mgmt.api.vo.AssessPieVO;
import com.bridgeintelligent.tag.webserver.dim.mgmt.api.vo.DimCountVO;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.Collection;
import java.util.List;

/**
 * @description
 * @author: grp 2021-01-27 14:53
 **/
@Mapper
public interface IndexOtherMapper {

    List<AssessPieVO> countByCatalogIds(@Param("ids") List<DimCatalog> catalogIds);

    List<AssessDataVO> countDims(@Param("group") Integer group, @Param("ids") List<DimCatalog> catalogIds);

    Integer countDimsByCatalogId(@Param("ids") List<DimCatalog> catalogIds);

    Integer countActivesByCatalogId(@Param("ids") List<DimCatalog> catalogIds,@Param("current") String current);

    Integer countDimsByDate(@Param("queryDate") String date, @Param("ids") List<DimCatalog> catalogIds);
}
